package RDFManager;

import org.apache.jena.rdf.model.Model;
import org.apache.jena.rdf.model.ModelFactory;
import org.apache.jena.riot.RDFDataMgr;

public class RDFReader {
  public static Model model;

  public static Model createModel(String inputFileName) {
    Model model = ModelFactory.createDefaultModel();
    model.setNsPrefix(RDFHead.prefix, RDFHead.namespace);
    String inputFilePath = inputFileName;
    RDFDataMgr.read(model, inputFilePath);
    return model;
  }

}
